package com.ruoyi.cems.service;

import com.ruoyi.cems.domain.BmsEmergencyVariableControl;
import com.ruoyi.cems.domain.dto.BmsEmergencyVariableControlDTO;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * 变量控制;Service接口
 * 
 * @author ruoyi
 * @date 2024-06-24
 */
public interface IBmsEmergencyVariableControlService 
{
    /**
     * 查询变量控制;
     * 
     * @param ID 变量控制;主键
     * @return 变量控制;
     */
    public BmsEmergencyVariableControl selectBmsEmergencyVariableControlByID(String ID);

    BmsEmergencyVariableControl selectBmsEmergencyVariableControlByTaskNo(String taskNo);

    /**
     * 查询变量控制;列表
     *
     * @param bevcDto
     * @return
     */
    public List<BmsEmergencyVariableControl> selectBmsEmergencyVariableControlList(BmsEmergencyVariableControlDTO bevcDto);

    /**
     * 新增变量控制;
     * 
     * @param bmsEmergencyVariableControl 变量控制;
     * @return 结果
     */
    public int insertBmsEmergencyVariableControl(BmsEmergencyVariableControl bmsEmergencyVariableControl);

    /**
     * 修改变量控制;
     * 
     * @param bmsEmergencyVariableControl 变量控制;
     * @return 结果
     */
    public int updateBmsEmergencyVariableControl(BmsEmergencyVariableControl bmsEmergencyVariableControl);

    /**
     * 批量删除变量控制;
     * 
     * @param IDs 需要删除的变量控制;主键集合
     * @return 结果
     */
    public int deleteBmsEmergencyVariableControlByIDs(String[] IDs);

    /**
     * 删除变量控制;信息
     * 
     * @param ID 变量控制;主键
     * @return 结果
     */
    public int deleteBmsEmergencyVariableControlByID(String ID);

    int start(BmsEmergencyVariableControl bmsEmergencyVariableControl,String userId);

    /**
     * 复制变量控制表
     * @param id 原变量控制表ID
     * @return
     */
    public int copy(String id,String userId);


    /**
     * 查询业务数据数量
     * @param start_time
     * @param end_time
     * @return
     */
    public int selectBmsEmergencyVariableControlCount(@Param("start_time") String start_time,@Param("end_time") String end_time);

    public int updateBmsEmergencyVariableStatus();
}
